package org.deschutter.init;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * User: Berten De Schutter
 * Date: 30-Jun-2009
 * Time: 12:25:22
 */
public class ScimitarBotMain {
    static ApplicationContext context;

    public static void main(String[] args) throws Exception {
        context = new ClassPathXmlApplicationContext(
                new String[]{"hibernate-configuration.xml", "hibernate-datasource.xml"});

        // Now start our bot up.
        ScimitarBot bot = new ScimitarBot();

        // Enable debugging output.
        bot.setVerbose(true);

        // Connect to the IRC server.
        bot.connect("localhost");

        // Join the #pircbot channel.
        bot.joinChannel("#berten");
    }

}
